public class Youke {
    String name;
    int age;
    public int piaojia(){
        if(age<12||age>60)
            return 0;
        return 20;
    }
    public void show(){
        System.out.println("名字："+name);
        System.out.println("年龄："+age);
        System.out.println("票价："+piaojia());
    }
}
